execute as @s[nbt={Inventory:[{Slot:-106b,tag:{battery:1b}}],SelectedItem:{id:"minecraft:stick",tag:{id:"advm:electric_stick"}}}] if score @s advm_power matches 1.. if score @s advm_is_hyperloaded matches 0 at @s run effect give @e[distance=..10,type=!player] slowness 3 127 true
execute as @s[nbt={Inventory:[{Slot:-106b,tag:{battery:1b}}],SelectedItem:{id:"minecraft:stick",tag:{id:"advm:electric_stick"}}}] if score @s advm_power matches 1.. if score @s advm_is_hyperloaded matches 1 at @s run effect give @e[distance=..10,type=!player] slowness 7 127 true
execute as @s[nbt={Inventory:[{Slot:-106b,tag:{battery:1b}}],SelectedItem:{id:"minecraft:stick",tag:{id:"advm:electric_stick"}}}] if score @s advm_power matches 1.. if score @s advm_is_hyperloaded matches 1 at @s run effect give @e[distance=..10,type=!player] wither 4 127 true
execute as @s[nbt={Inventory:[{Slot:-106b,tag:{battery:1b}}],SelectedItem:{id:"minecraft:stick",tag:{id:"advm:electric_stick"}}}] at @s run function advm:skills/battery_lose